package com.ydd.result;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * 封装分页查询结果
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class HMPageResult<T> implements Serializable {

    //获取总数
    private Integer count;
    //获取总页数
    private Integer totalPage;
    //获取每页数
    private Integer pageSize;
    //获取当前页码
    private Integer currentPage;

    private List<T> data; //当前页数据集合





}
